
// import viteLogo from '/vite.svg'
// <img src={viteLogo} className="logo" alt="Vite logo" />

import { createBrowserRouter, RouterProvider } from "react-router-dom"
import UserComponent from "./component/UserComponent";
import { App as AntdMessageContext } from "antd";
import { ConfigProvider, theme } from 'antd';
import locale from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import { getRouter } from "./route/file-router";
import React, { Suspense } from "react";


const router = getRouter();

// router.navigate
console.log(router);
function App() {
  return (
    <ConfigProvider
      locale={locale}
      theme={{
        algorithm: [theme.defaultAlgorithm],
        token: {
          colorBgLayout: "",
          // colorBgBase: "#242424"
        }
      }}
    >
      <AntdMessageContext>
        <RouterProvider router={router} />
      </AntdMessageContext>
    </ConfigProvider>
  )
}

export default App
